package com.example.manager.mapper;

import com.example.manager.domain.Order;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface OrderMapper {

    @Select("select * from orderrecord")
    public List<Order> selectOrders();

    @Delete("delete from orderrecord where order_id=#{order_id}")
    public boolean deleteOrderByOrder_Id(Integer order_id);
}
